﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using Volo.Abp.MultiTenancy;

namespace WorkflowEngine.Entitys
{
    public class WorkTask : AggregateRoot<Guid>, IMultiTenant
    {

        [Description("任务名称")]
        public string TaskName { get; set; }

        public string RefObjName { get; set; }
        public string RefObjId { get; set; }
        public string RefObjGroup { get; set; }

        [Description("任务状态")]
        public TaskStatus TaskStatus { get; set; } = TaskStatus.UnRead;
        [Description("操作状态")]
        public HandleStatus HandleStatus { get; set; } = HandleStatus.Normal;
        [Description("是否同意")]
        public bool? Agree { get; set; } = true;
        [Description("描述")]
        public string Description { get; set; }
        [Description("任务完成时间")]
        public DateTime? Complate { get; set; }


        public Guid? TenantId { get; set; }

        public Guid FromeUserId { get; set; }
        public Guid? ToUserId { get; set; }

        public Guid FromeOrgId { get; set; }
        public Guid? ToOrgId { get; set; }


        public Guid FromeFullOrgName { get; set; }
        public Guid? ToFullOrgName { get; set; }

        public Guid FromeUserCnName { get; set; }
        public Guid? ToUserCnName { get; set; }


        public string Phone { get; set; }
        public string WorkTel { get; set; }
        public string QQ { get; set; }
        public string WeiXin { get; set; }


        [Description("打开任务的url，进行任务详情的查看")]
        public string Url { get; set; }

        public void SetTenantId(Guid tenantId) => TenantId = tenantId;
    }


}
